<!DOCTYPE html>
<html lang="cn">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>mysnabbdom</title>
  <style>
    body {
      background: #333;
      padding: 10px 100px;
    }

    h1 {
      color: #fff;
    }

    .btn {
      background-color: #000;
      display: inline-block;
      color: rgba(255, 255, 255, 0.7);
      padding: 12px;
      cursor: pointer;
    }

    .add {
      float: right;
    }

    .list {
      position: relative;
    }

    .row {
      overflow: hidden;
      position: absolute;
      box-sizing: border-box;
      width: 100%;
      padding: 15px;
      background: #000;
      transition: all .5s ease-in-out;
    }

    .row div:not(:last-child) {
      display: inline-block;
      vertical-align: middle;
      color: #fff;
    }

    .row>div:nth-child(1) {
      width: 5%;
    }

    .row>div:nth-child(2) {
      width: 20%;
    }

    .row>div:nth-child(3) {
      width: 75%;
    }

    .rm-btn {
      position: absolute;
      top: 0;
      right: 10px;
      color: #7e761e;
      text-align: center;
      padding: 0;
      cursor: pointer;
    }
  </style>
</head>
<body>
  <div id="app"></div>
  <script src="./src/my-snabbdom.js"></script>
</body>
</html>